package com.alibaba.aone.casestudy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.aone.casestudy.common.entity.Action;
import com.alibaba.aone.casestudy.common.entity.ActionConditions;
import com.alibaba.aone.casestudy.dao.ActionDao;
import com.alibaba.aone.casestudy.service.ActionService;


public class ActionServiceImpl implements ActionService {
	
	@Autowired
	private ActionDao actionDao;

	public List<Action> listActions() {
		return actionDao.listActions();
	}
	
	public Action getActionByNumber(String actionNo){
		return actionDao.getActionByNo(actionNo);
	}

	public List<Action> getActionsByCasestudyNo(String casestudyNo) {
		return actionDao.getActionsByCasestudyNo(casestudyNo);
	}


	public List<Action> search(ActionConditions actionConditions) {
	
		return actionDao.search(actionConditions);
	}

	public int updateAction(Action action) {
		return actionDao.updateAction(action);
	}


}